package com.cxx.purchasecharge.dal;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.cxx.purchasecharge.core.model.persistence.Contact;
import com.cxx.purchasecharge.dal.common.MyGenericDao;

public interface ContactDao extends MyGenericDao<Contact, Long>
{

    public Contact findByName (String name);

    public List <Contact> findByCustomer (long customerId);
    
    List <Contact> findByFuzzyName (String keyWord);

    Page <Contact> findByFuzzy (Pageable pageable, String searchKey, long userId, boolean admin);

    public List <Contact> findBySignUserAndSharable (long signUserId, boolean sharable);

}
